//
//  TestPage2SwiftUI.swift
//  swiftUITest
//
//  Created by mac on 2024/5/22.
//

import SwiftUI

struct TestPage2SwiftUI: View {
    
    @EnvironmentObject var parentNaviVC: RootSwiftController
    
    var body: some View {
        Image("backArrow").onTapGesture {
                self.parentNaviVC.navigationController?.popViewController(animated: true)
            }
            .padding()// 无参数的padding，表示上下左右内边距为16
            .border(.yellow, width: 1)
            
        Text("Page2")
    }
}

#Preview {
    TestPage2SwiftUI()
}
